package si.yun.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Id;
import javax.persistence.GeneratedValue;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
/** 
 * @Author Cxc 
 * @Author QQ:1304793236 
 * @Date 2021-07-30 09:42:14 
 */
@Entity
@Table ( name ="sy_product" )
public class SyProduct  implements Serializable {

	private static final long serialVersionUID =  2946245349609074011L;

	/**
	 * 商品id
	 */
   	@Column(name = "product_id" )
	private Long productId;

	/**
	 * 商品编号
	 */
   	@Column(name = "product_code" )
	private Long productCode;

	/**
	 * 商品分类
	 */
   	@Column(name = "category_id" )
	private Long categoryId;

	/**
	 * 商品名称
	 */
   	@Column(name = "product_name" )
	private String productName;

	/**
	 * 搜索关键字
	 */
   	@Column(name = "search_keywords" )
	private String searchKeywords;

	/**
	 * 商品主图
	 */
   	@Column(name = "main_image" )
	private String mainImage;

	/**
	 * 商品现价
	 */
   	@Column(name = "currentprice_product" )
	private BigDecimal currentpriceProduct;

	/**
	 * 商品原价
	 */
   	@Column(name = "originalprice_product" )
	private BigDecimal originalpriceProduct;

	/**
	 * 商品描述
	 */
   	@Column(name = "product_description" )
	private String productDescription;

	/**
	 * 点击量
	 */
   	@Column(name = "hits" )
	private Long hits;

	/**
	 * 商品状态(0已删除，1上架，2下架)
	 */
   	@Column(name = "product_sate" )
	private Long productSate;

	/**
	 * 创建人
	 */
   	@Column(name = "create_user" )
	private Long createUser;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_date" )
	private Date createDate;

	/**
	 * 更新人
	 */
   	@Column(name = "update_user" )
	private Long updateUser;

	/**
	 * 更新时间
	 */
   	@Column(name = "update_date" )
	private Date updateDate;

	/**
	 * 商品推荐（2新品，3推荐）
	 */
   	@Column(name = "recommend" )
	private Long recommend;

	/**
	 * 是否可用优惠券(2yes,3no)
	 */
   	@Column(name = "discount" )
	private Long discount;

	/**
	 * 服务保证（2退货无忧，3快速退款，4包邮）
	 */
   	@Column(name = "ensure" )
	private String ensure;

  public Long getProductId() {
    return productId;
  }

  public void setProductId(Long productId) {
    this.productId = productId;
  }


  public Long getProductCode() {
    return productCode;
  }

  public void setProductCode(Long productCode) {
    this.productCode = productCode;
  }


  public Long getCategoryId() {
    return categoryId;
  }

  public void setCategoryId(Long categoryId) {
    this.categoryId = categoryId;
  }


  public String getProductName() {
    return productName;
  }

  public void setProductName(String productName) {
    this.productName = productName;
  }


  public String getSearchKeywords() {
    return searchKeywords;
  }

  public void setSearchKeywords(String searchKeywords) {
    this.searchKeywords = searchKeywords;
  }


  public String getMainImage() {
    return mainImage;
  }

  public void setMainImage(String mainImage) {
    this.mainImage = mainImage;
  }


  public BigDecimal getCurrentpriceProduct() {
    return currentpriceProduct;
  }

  public void setCurrentpriceProduct(BigDecimal currentpriceProduct) {
    this.currentpriceProduct = currentpriceProduct;
  }


  public BigDecimal getOriginalpriceProduct() {
    return originalpriceProduct;
  }

  public void setOriginalpriceProduct(BigDecimal originalpriceProduct) {
    this.originalpriceProduct = originalpriceProduct;
  }


  public String getProductDescription() {
    return productDescription;
  }

  public void setProductDescription(String productDescription) {
    this.productDescription = productDescription;
  }


  public Long getHits() {
    return hits;
  }

  public void setHits(Long hits) {
    this.hits = hits;
  }


  public Long getProductSate() {
    return productSate;
  }

  public void setProductSate(Long productSate) {
    this.productSate = productSate;
  }


  public Long getCreateUser() {
    return createUser;
  }

  public void setCreateUser(Long createUser) {
    this.createUser = createUser;
  }


  public Date getCreateDate() {
    return createDate;
  }

  public void setCreateDate(Date createDate) {
    this.createDate = createDate;
  }


  public Long getUpdateUser() {
    return updateUser;
  }

  public void setUpdateUser(Long updateUser) {
    this.updateUser = updateUser;
  }


  public Date getUpdateDate() {
    return updateDate;
  }

  public void setUpdateDate(Date updateDate) {
    this.updateDate = updateDate;
  }


  public Long getRecommend() {
    return recommend;
  }

  public void setRecommend(Long recommend) {
    this.recommend = recommend;
  }


  public Long getDiscount() {
    return discount;
  }

  public void setDiscount(Long discount) {
    this.discount = discount;
  }


  public String getEnsure() {
    return ensure;
  }

  public void setEnsure(String ensure) {
    this.ensure = ensure;
  }

}
